﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderBookDetailed.aspx.cs" Inherits="CardLogistics.Web.MainPage.Ordering.Ordering_Cardinfo.OrderBookDetailed" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav" TagPrefix="uc1" %>
<%@ Register Src="../../../Controls/WebUserControl_ToolBar.ascx" TagName="WebUserControl_ToolBar" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>卡片订货单台账</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/CreateControl.js" type="text/javascript"></script>
    <script type="text/javascript">
        //搜索按钮执行函数
        function queryData() {
            var ReportViewer = document.getElementById("ReportViewer");
            var billNo = $("#txt_BillNo").val(); //需求单号
            var conNo = $("#txt_PConNo").val(); //合同编号
            var orderNo = $("#txt_OrderNo").val(); //订单编号
            var batchNo = $("#txt_BatchNo").val(); //批次号

            var strSupName = $("#ddlsupName").val(); //供应商
            var strCardType = $("#ddlCardType").val(); //卡类型
            var strBtypename = $("#ddlBtypename").val(); //芯片类型
            ReportViewer.Stop();
            var PageUrl = "OrderBookDetailedRpt.aspx?billNo=" + billNo + "&conNo=" + conNo + "&orderNo=" + orderNo + "&batchNo=" + batchNo;
            PageUrl += "&SupNameId=" + strSupName;
            PageUrl += "&CardTypeId=" + strCardType;
            PageUrl += "&BtypenameId=" + strBtypename;
            var DataURL = encodeURI(PageUrl);
            ReportViewer.DataURL = DataURL;
            ReportViewer.Start();
        }
    </script>
</head>
<body onload="queryData();">
    <form runat="server" id="f2">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <div class="rightinfo">
        <ul class="seachform">
            <li>
                <label>
                    订单编号</label>
                <asp:TextBox ID="txt_OrderNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    批次号</label>
                <asp:TextBox ID="txt_BatchNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    需求单号</label>
                <asp:TextBox ID="txt_BillNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    合同编号</label>
                <asp:TextBox ID="txt_PConNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                    <label>
                        供应商</label>
                    <select name="ddlsupName" id="ddlsupName" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
                <li>
                    <label>
                        卡类型</label>
                    <select name="ddlCardType" id="ddlCardType" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
                 <li>
                    <label>
                        芯片类型</label>
                    <select name="ddlBtypename" id="ddlBtypename" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
            <li>
                <label>
                    &nbsp;</label>
                <input id="btnSearch" type="button" class="scbtn" value="查询" onclick="queryData();" />
            </li>
        </ul>
        <script type="text/javascript">
            var divkuangH = $(window).height();
            var viewH = divkuangH - 117 + 20 - 1;
            CreatePrintViewerEx("100%", viewH, '../../../grf/OrderBookDetailed-T.grf', "", false);
        </script>
    </div>
    </form>
</body>
</html>
